package com.wisnews.service.sec;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wisnews.pojo.sr.entity.News;
import com.wisnews.pojo.sr.vo.NewsStatistics;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yuyd
 * @since 2020-12-25
 */
public interface INewsService extends IService<News> {

    IPage getNewsInfo4Page(News req, IPage<Object> toPage);

    List<String> getAllPageUrl() throws Exception;

    void bathForbiddeneNews(List<String> ids);

    void enableNews(List<String> ids);

    List<NewsStatistics> getNewsCountInfo();

    IPage<News> getNewsListByOperatorId(IPage toPage, String operatorId);
}
